function setItem(key, data) {
  uni.setStorageSync(key, JSON.stringify(data))
}

function getItem(key) {
  return JSON.parse(uni.getStorageSync(key) || '{}')
}

function removeItem(key) {
  uni.removeStorageSync(key)
}

export { setItem, getItem, removeItem }